import java.util.ArrayList;

public class Account {
    private String id;
    private double money;
    private ArrayList deductList=new ArrayList();
    private ArrayList sucList=new ArrayList();
    public Account(String id){
        this.id = id;
    }
    public String getId(){
        return id;
    }
    public double getMoney(){
        return money;
    }
    public void setMoney(double money){
        this.money +=money;
    }
    public void RecArr(String name, double money,boolean dec){
        String operationStr = name+":"+money;
        if(dec){
            this.deductList.add(operationStr);
        }else{
            this.sucList.add(operationStr);
        }
    }
    public ArrayList getDeductStr(){
        return this.deductList;
    }
    public ArrayList getSucStr(){
        return this.sucList;
    }
}
